﻿@model TrocaFigurinhas.Models.LoginModel

@{
    ViewBag.Title = "LogOn";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Autenticação do Usuário</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

<fieldset>
    <legend>Autenticação</legend>
    <div class="editor-label">
        @Html.LabelFor(model => model.Login)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Login)
        @Html.ValidationMessageFor(model => model.Login)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Senha)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Senha)
        @Html.ValidationMessageFor(model => model.Senha)
    </div>
    <p>
        <input type="submit" value="Logar" />
    </p>
</fieldset>
}
